package com.senjoeson.wanandroid.api;

import com.senjoeson.wanandroid.model.ArticleData;
import com.senjoeson.wanandroid.model.BannerData;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * @author senjoeson
 * @date 2018/4/1
 */
public interface ApiService {
    /**
     * 获取轮播图的地址
     */
    @GET("/banner/json")
    Observable<BaseResponse<List<BannerData>>> getBanners();


    @GET("/article/list/{page}/json")
    Observable<BaseResponse<ArticleData>> getArticleList(@Path("page") int page);


}
